package com.herokuapp.zhachuang.repository;

import com.herokuapp.zhachuang.entity.UserProfile;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * 用户资料(数据存取对象)
 *
 * @author chazhuang@gmail.com
 */
@Repository
public interface UserProfileRepository extends JpaRepository<UserProfile, Long> {

	public boolean existsByCellular(final String cellular);

	public boolean existsByUserId(final String userId);
}
